import request from '@/utils/request'


// 获取当日报警
export function GetDayliyAlarmInfo(deviceid) {
  return request({
    url: '/api/DeviceAlarm/GetDayliyAlarmInfo'+`?deviceid=${deviceid}`,
    method: 'post',
  })
}

















// 分页多条件查询历史报警信息
export function GetHistoryAlarm(deviceid,starttime,stoptime,alarmdegree,page,size) {
    return request({
      url: '/api/DeviceAlarm/PageDeviceAlarmInfo'+`?deviceid=${deviceid}&starttime=${starttime}&stoptime=${stoptime}&alarmdegree=${alarmdegree}&page=${page}&size=${size}`,
      method: 'post',
    })
  }
  